package com.fzz.learning_forum.service;

import com.fzz.learning_forum.domain.Article;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface ArticleService {

    //分页查询文章
    public PageInfo<Article> selectArticleWithPage(Integer page, Integer count);

    //根据id查询文章
    public PageInfo<Article> selectArticleWithPageById(Integer page,Integer count,Integer id);

    //根据tags模糊查询文章
    public PageInfo<Article> selectArticleByTags(Integer page,Integer count,String tags);
}
